import request from '@/axios/axios.js'

// 查询
export const searchApi = (params) => {
    return request({
        method: 'post',
        url: '/dms/dmsBackupConfig/queryPage',
        data: params
    })
}

// 增加
export const addApi = (params) => {
    return request({
        method: 'post',
        url: '/dms/dmsBackupConfig/add',
        data: params
    })
}

// 编辑
export const editApi = (params) => {
    return request({
        method: 'post',
        url: '/dms/dmsBackupConfig/edit',
        data: params
    })
}

// 删除
export const deleteApi = (params) => {
    return request({
        method: 'post',
        url: '/dms/dmsBackupConfig/deleteBatch',
        data: params
    })
}

// 下载模板
export const templateApi = (params) => {
    return request({
        method: 'post',
        url: '/dms/dmsBackupConfig/backupConfigTemplate',
        responseType: 'blob',
        data: params
    })
}

// 导出

export const exportApi = (params) => {
    return request({
        method: 'post',
        url: '/dms/recording/export',
        responseType: 'blob',
        data: params
    })
}


export const updateStatusApi = (params) => {
    return request({
        method: 'post',
        url: '/dms/dmsBackupConfig/updateStatus',
        data: params
    })
}

export const updateStatusIDBApi = (params) => {
    return request({
        method: 'post',
        url: '/dms/device/updateStatus',
        data: params
    })
}

export const updateStatusLedgerApi = (params) => {
    return request({
        method: 'post',
        url: '/dms/moldinfo/updateStatus',
        data: params
    })
}

export const updateStatusProductionShiftApi = (params) => {
    return request({
        method: 'post',
        url: '/dms/productionShift/updateStatus',
        data: params
    })
}




